package face.pay.open.file;

import face.pay.open.file.service.IFileApiService;
import face.pay.util.ResultMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: zkj
 * @Date: 2019/8/23 16:29
 * @Description:文件上传和下载接口
 */
@RestController
@RequestMapping("/file")
public class FileUpAndDownController {

    @Autowired
    private IFileApiService iFileService;
    @RequestMapping("/upload")
    public ResultMessage  upload(@RequestBody String  json){
            return  iFileService.upload(json);
    }
}
